#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<random>
#define N 10
using namespace std;
mt19937 RAND(random_device{}());
int read()
{
	char c=0;
	int sum=0;
	while (c<'0'||c>'9') c=getchar();
	while ('0'<=c&&c<='9') sum=sum*10+c-'0',c=getchar();
	return sum;
}
int n,m;
int main()
{
	freopen("pearl.in","w",stdout);
	n=RAND()%5+1,m=RAND()%5+1;
	cout<<n<<' '<<m<<' '<<RAND()%n+1<<endl;
	for (int i=1;i<=m;++i) cout<<(RAND()&1);
	cout<<endl;
	return 0;
}
